package com.renyr.factory;

/**
 * 静态工厂模式
 */
public class StaticFactory {
    private StaticFactory(){}
    public static Fruits getApple(){  return new Apple(); }
    public static Fruits getBanana(){  return new Banana(); }

}
